<template>
	<view class="content">
		<web-view :src="src" style="height: 100%;width: 100%;"></web-view>
	</view>
</template>

<script>
	import {
		mapGetters,
		mapActions
	} from 'vuex'
	export default {
		computed: {
			...mapGetters(['userInfo', 'api']),
		},
		components: {},
		data() {
			return {
				src: '',
			}
		},
		onBackPress(options) {
			const currentWebview = this.$mp.page.$getAppWebview();
			if (currentWebview) {
				let child = currentWebview.children();
				for (let i = 0; i < child.length; i++) {
					currentWebview.remove(child[i]);
				}
			}
			return false;
		},
		onLoad(op) {
			this.src = op.src
			this.add_ad_detail()
		},
		methods: {
			...mapActions(['add_ad_detail']),
		}
	}
</script>

<style lang="scss" scoped>
	.content {}
</style>